package com.hhsjdesign.dynamicui.core.widgetimpl.businesswidget

import android.content.Context
import android.view.View
import androidx.viewpager2.widget.ViewPager2
import com.hhsjdesign.dynamicui.annoprocess.AWidgetType
import com.hhsjdesign.dynamicui.core.widgetimpl.BusinessWidget
import com.hhsjdesign.dynamicui.core.property.ShapeProperty
import com.hhsjdesign.dynamicui.core.widgetdata.WidgetData
import com.hhsjdesign.dynamicui.core.property.WidgetSpecProperty
import com.hhsjdesign.dynamicui.core.widgetdata.WidgetTypeConst

/**
 * 头条组件
 *
 * FlipLayoutProperty
 */
@AWidgetType(WidgetTypeConst.FLIP)

class FlipWidget(
    context: Context,
    data: WidgetData
) : BusinessWidget(context, data) {
    override fun layout(property: ShapeProperty, prentType: String) {
    }

    override fun onLoadData() {
    }

    override fun createMainView(specProperty: WidgetSpecProperty): View {
        return ViewPager2(context)
    }

}